<!-- 用于header显示 -->
<template>
    <!-- 左右布局 -->
    <div class="session-intro">
        <el-image :src="sessionStore.session.modelAvatar"></el-image>
        <!-- 上下布局 -->
        <div class="session-name">
            <div class="session">{{ sessionStore.session.title }}</div>
            <div class="name">{{ sessionStore.session.modelName }}</div>
        </div>
    </div>
</template>

<script setup>
import { } from "vue"
import { useSessionStore } from "@/stores/session";
const sessionStore = useSessionStore();

</script>

<style lang="scss" scoped>
.session-intro {
    display: flex;
    gap: 0.5rem;
    row-gap: 0.5rem;

    .el-image {
        height: 2rem;
        width: 2rem;
    }

    .session-name {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        row-gap: 0.5rem;

        .session {
            line-height: 1rem;
            font-size: 1rem;
            font-weight: bold;
        }

        .name {
            line-height: 0.7rem;
            font-size: 0.7rem;
            color: #999;
        }
    }
}
</style>
